source=$(wildcard *.c)
objects=$(source:.c=.o)
deps=$(source:.c=.d)

LDSQLITE3:=-I/home/linux/work/sql3/sqlite-arm/include

all:$(objects)

$(objects):%.o:%.c
	$(CC) $(CFLAGS) -c $< -o $@  $(LDSQLITE3)
	cp *.o ../objs

sinclude $(deps)

$(deps):%.d:%.c
	$(CC) -MM $< > $@ $(CFLAGS) $(LDSQLITE3)
